-- GENERATED SPELL FOR [Amani'shi Guardian] --


function spell0_23597(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(43246,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23597', 15000, 1)
end

function spell1_23597(pUnit, Event) --@Startling Roar,Self--
pUnit:FullCastSpellOnTarget(43249,pUnit)
pUnit:RegisterEvent('Sorts_23597', 276, 1)
end

function Sorts_23597(pUnit, Event)
local choix_sorts_23597 = math.random(0, 1)
if choix_sorts_23597 == 0 then
pUnit:RegisterEvent('spell0_23597', 1, 1)
end
if choix_sorts_23597 == 1 then
pUnit:RegisterEvent('spell1_23597', 1, 1)
end
end

function mob23597_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23597', math.random(1500, 3000), 1)
end

function mob23597_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23597_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23597_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23597, 1, 'mob23597_Action')
RegisterUnitEvent(23597, 2, 'mob23597_Leave')
RegisterUnitEvent(23597, 3, 'mob23597_Kill')
RegisterUnitEvent(23597, 4, 'mob23597_Die')
